#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>


void fun(char* fname, char* st)
{
	FILE* myf;
	int i;
	myf = fopen(fname, "w");
	for (i = 0; i < strlen(st); i++) fputc(st[i], myf);
	fclose(myf);
} 
void test1()
{
	fun("test.txt", "new world");
	fun("test.txt", "hello,");
}




int main()
{
	test1();
	return 0;
}